package com.project.base.baseproject.Activity.WelcomeActivity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.jaeger.library.StatusBarUtil;
import com.project.base.baseproject.Activity.LoginActivity.LoginActivity;
import com.project.base.baseproject.AppCustoms.MyApplication.MyApplication;
import com.project.base.baseproject.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

//欢迎界面
public class WelcomeActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome_layout);
        //设置沉侵式状态栏
        StatusBarUtil.setColor(this, getResources().getColor(R.color.black),0);
        //绑定界面元素
        ButterKnife.bind(this);
    }
    @OnClick(R.id.welcome_jump_btn)
    public void jumpClick() {
        //改变登陆模型管理器的值
        MyApplication.identityManager.identity.firstUseSoft = 0;
        MyApplication.identityManager.saveAuthorizeData();
        //进入登陆界面
        Intent intent = new Intent(this, LoginActivity.class);
        finish();
        startActivity(intent);
    }
}
